/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import java.awt.Color;
import java.awt.Image;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Locale;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileNameExtensionFilter;
import negocios.Color_Prenda;
import negocios.Colores;
import negocios.Estado_Prenda;
import negocios.Prenda;
import negocios.Prendas;
import negocios.Tipo_Prenda;
import negocios.Tipos_Prenda;
import negocios.Usuario;
import org.jvnet.substance.SubstanceLookAndFeel;

/**
 *
 * @author May
 */
public class Creacion_Prenda_Duenio extends javax.swing.JFrame {
 Prenda unaPrenda = new Prenda();
 Prendas listaPrendas=new Prendas();
 Colores listaColores=new Colores();
 Tipos_Prenda listatipos=new Tipos_Prenda();
  
  Color_Prenda unColor=new Color_Prenda();
  Estado_Prenda unEstado=new Estado_Prenda();
  Usuario unduenio=new Usuario();
  Tipo_Prenda unTipo=new Tipo_Prenda();
   String ruta="";
  
    /**
     * Creates new form Creacion_Prenda_Duenio
     */
    public Creacion_Prenda_Duenio() {
         JFrame.setDefaultLookAndFeelDecorated(true);
        SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.RavenGraphiteGlassSkin");
        SubstanceLookAndFeel.setCurrentWatermark("org.jvnet.substance.watermark.SubstanceWoodWatermark");
        initComponents();
        actualizaComboTipos();
        actualizaComboColores();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        txtIdPrenda = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        txtDescripcionPrenda = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        txtTipoPrenda = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        FOTO = new javax.swing.JLabel();
        btGuardarUsuario1 = new javax.swing.JButton();
        btnActualizarFotoUsuario1 = new javax.swing.JButton();
        comboColores = new javax.swing.JComboBox();
        txtColorP = new javax.swing.JTextField();
        btListaPrendas = new javax.swing.JButton();
        comboTipoPrenda = new javax.swing.JComboBox();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Registro de Prendas");

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel5.setText("Codigo");

        txtIdPrenda.setEditable(false);

        jLabel8.setText("Nombre:");

        jLabel9.setText("Tipo Prenda");

        txtTipoPrenda.setEditable(false);

        jLabel10.setText("Color:");

        jPanel4.setBackground(new java.awt.Color(204, 204, 255));

        FOTO.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTO.setText("FOTO");
        FOTO.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                FOTOMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(FOTO, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTO, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
                .addContainerGap())
        );

        btGuardarUsuario1.setText("Guardar");
        btGuardarUsuario1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btGuardarUsuario1ActionPerformed(evt);
            }
        });

        btnActualizarFotoUsuario1.setText("Subir Foto Prenda");
        btnActualizarFotoUsuario1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActualizarFotoUsuario1ActionPerformed(evt);
            }
        });

        comboColores.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboColores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboColoresMouseClicked(evt);
            }
        });

        txtColorP.setEditable(false);
        txtColorP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtColorPActionPerformed(evt);
            }
        });

        btListaPrendas.setText("Ver Prendas Creadas");
        btListaPrendas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btListaPrendasMouseClicked(evt);
            }
        });
        btListaPrendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btListaPrendasActionPerformed(evt);
            }
        });

        comboTipoPrenda.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboTipoPrenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboTipoPrendaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txtDescripcionPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel10))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(btGuardarUsuario1)
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(txtColorP, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txtTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(comboColores, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(comboTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(btListaPrendas, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(13, 13, 13)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtIdPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnActualizarFotoUsuario1, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(txtIdPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(txtDescripcionPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(txtTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(comboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtColorP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(38, 38, 38)
                        .addComponent(btGuardarUsuario1))
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addComponent(btnActualizarFotoUsuario1)
                        .addGap(22, 22, 22))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addComponent(btListaPrendas)
                        .addGap(18, 18, 18))))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 446, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
public void actualizaComboTipos(){
    listatipos.listar();
    ArrayList tipos = new ArrayList();
    tipos = listatipos.getTipos();
    comboTipoPrenda.removeAllItems();
    comboTipoPrenda.addItem("");
       
        for (int i = 0; i < tipos.size(); i++) {
            Tipo_Prenda otroTipo = new Tipo_Prenda();
            otroTipo = (Tipo_Prenda) tipos.get(i);
            comboTipoPrenda.addItem(otroTipo.getId() + ", " + otroTipo.getDescripcion());
        }     
      }  

public void actualizaComboColores(){
    listaColores.listar();
    ArrayList colores = new ArrayList();
    colores = listaColores.getColores();
    comboColores.removeAllItems();
    comboColores.addItem("");
       
        for (int i = 0; i < colores.size(); i++) {
            Color_Prenda  otraPrenda= new Color_Prenda();
            otraPrenda = (Color_Prenda) colores.get(i);
            comboColores.addItem(otraPrenda.getId() + ", " + otraPrenda.getColor());
        }
      }    
        
    private void FOTOMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FOTOMouseClicked
        actualizarFotoPrenda(Integer.parseInt(txtIdPrenda.getText()));
        // TODO add your handling code here:
    }//GEN-LAST:event_FOTOMouseClicked
 
 public void actualizarFotoPrenda(int ced) {
         unaPrenda.buscar(ced);       
            //redimensiona imagen
            double alto = unaPrenda.getFoto().getHeight(null) / Math.ceil(unaPrenda.getFoto().getHeight(null)/170f) ;
            double ancho =unaPrenda.getFoto().getWidth(null) / Math.ceil(unaPrenda.getFoto().getWidth(null)/175f) ;
            Icon icon = new ImageIcon( unaPrenda.getFoto().getScaledInstance((int)ancho,(int)alto, Image.SCALE_AREA_AVERAGING) );            
            this.FOTO.setText("");
            this.FOTO.setIcon( icon  );
 }
    
    
    private void btGuardarUsuario1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGuardarUsuario1ActionPerformed
        if (txtIdPrenda.getText().equals("") || txtDescripcionPrenda.getText().equals("") || txtTipoPrenda.getText().equals("") || txtColorP.getText().equals("") ){
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            unaPrenda.setId(Integer.parseInt(txtIdPrenda.getText()));
            unaPrenda.setNombre(txtDescripcionPrenda.getText());

            // ESTO ES PARA GUARDAR EL OBJETO COLOR EN LA CLASE PRENDA
            if (unColor.buscar(Integer.parseInt(txtColorP.getText()))==false) {
                JOptionPane.showMessageDialog(null, "el objeto color no existe");
            }
            unaPrenda.setColor(unColor);
            /// FIN COLOR
           
              /// PARA SACAR TIPOS
             if (unTipo.buscar((Integer.parseInt(txtTipoPrenda.getText())))==false) {
                JOptionPane.showMessageDialog(null, "el objeto tipo_prenda no existe");
            }
            unaPrenda.setTipo_prenda(unTipo);
            //FIN TIPOS
            
            //// ESTO ES PARA LA FECHA, CNOVIERTE DE STRING A SQL.DATE
            java.sql.Date fecFormatoDate = null;
            try {
                SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd", new Locale("es", "ES"));
                fecFormatoDate = new java.sql.Date(sdf.parse(txtTipoPrenda.getText()).getTime());
                System.out.println("Fecha con el formato java.sql.Date: " + fecFormatoDate);
                unaPrenda.setFecha(fecFormatoDate);
            } catch (Exception ex) {
                System.out.println("Error al obtener el formato de la fecha/hora: " + ex.getMessage());
            }
            ///// FIN DE CONVERSION FECHA

           /* boolean r = unaPrenda.grabar(ruta);
            if (r == true) {
                JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                unaPrenda.modificarFoto(ruta);  //agrega foto de usuario
                actualizarFotoPrenda(unaPrenda.getCedula());     // PARA VISUALIZAR LA FOTO EN EL PANEL
            } else if (r == false) {
                JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
            }
            */
        }
    }//GEN-LAST:event_btGuardarUsuario1ActionPerformed

    private void btnActualizarFotoUsuario1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarFotoUsuario1ActionPerformed
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setFileFilter( new FileNameExtensionFilter("Archivo de Imagen","jpg") );
        fileChooser.setCurrentDirectory(new java.io.File("e:/imagenes_tmp/"));
        int result = fileChooser.showOpenDialog(null);
        if ( result == JFileChooser.APPROVE_OPTION ){
            //obtiene ruta del archivo
            ruta = fileChooser.getSelectedFile().getAbsolutePath();

        }
    }//GEN-LAST:event_btnActualizarFotoUsuario1ActionPerformed

    private void comboColoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboColoresMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboColores.getSelectedItem(), ",");
        try {
            txtColorP.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboColoresMouseClicked

    private void txtColorPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtColorPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtColorPActionPerformed

    private void btListaPrendasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btListaPrendasMouseClicked
        ListaPrendas m=new ListaPrendas();
        m.setVisible(true);
        // TODO add your handling code here:
    }//GEN-LAST:event_btListaPrendasMouseClicked

    private void btListaPrendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btListaPrendasActionPerformed

        // TODO add your handling code here:
    }//GEN-LAST:event_btListaPrendasActionPerformed

    private void comboTipoPrendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboTipoPrendaMouseClicked
 StringTokenizer tokens = new StringTokenizer((String) comboTipoPrenda.getSelectedItem(), ",");
        try {
            txtTipoPrenda.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboTipoPrendaMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Creacion_Prenda_Duenio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Creacion_Prenda_Duenio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Creacion_Prenda_Duenio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Creacion_Prenda_Duenio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Creacion_Prenda_Duenio().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel FOTO;
    private javax.swing.JButton btGuardarUsuario1;
    private javax.swing.JButton btListaPrendas;
    private javax.swing.JButton btnActualizarFotoUsuario1;
    private javax.swing.JComboBox comboColores;
    private javax.swing.JComboBox comboTipoPrenda;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JTextField txtColorP;
    private javax.swing.JTextField txtDescripcionPrenda;
    private javax.swing.JTextField txtIdPrenda;
    private javax.swing.JTextField txtTipoPrenda;
    // End of variables declaration//GEN-END:variables
}
